package com.shop.service.impl;

import com.shop.entity.Result;
import com.shop.mapper.UserMapper;
import com.shop.pojo.User;
import com.shop.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    /**	1.查询所有用户*/
    public List<User> findAllUser() {
        return null;
    }

    @Override
    /**2.添加新的用户*/
    public Result addUser(User user) {
        return null;
    }

    /**3.根据id查询用户信息*/
    @Override
    public User getUserById(String uid) {
        User user = userMapper.selectByPrimaryKey(uid);
        return user;
    }
    @Override
    /**4.删除用户*/
    public Result deleteUser(String uid) {
        return null;
    }

    @Override
    /**5.修改用户*/
    public Result updateUser(User user) {
        return null;
    }
}
